<?php
$dir    = 'folder';
$files = scandir($dir);
foreach($files as $file)
{
    if($file[0]=='a')
    {
        unlink($file);
        echo "$file -> Đã xóa<br>";
    }
}
?>
